# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
#
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=83af8811a28727a13f04132cc33b7f58"

SRC_URI = "https://people.freedesktop.org/~aplattner/vdpau/libvdpau-${PV}.tar.bz2"
SRC_URI[md5sum] = "2fa0b05a4f4d06791eec83bc9c854d14"
SRC_URI[sha256sum] = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736"

DEPENDS = "libx11 libxext dri2proto"

# NOTE: if this software is not capable of being built in a separate build directory
# from the source, you should replace autotools with autotools-brokensep in the
# inherit line
inherit pkgconfig autotools

# recipe automatically - you will need to examine the Makefile yourself and ensure
# that the appropriate arguments are passed in.

do_compile () {
	# You will almost certainly need to add additional arguments here
	oe_runmake
}

do_install () {
	# This is a guess; additional arguments may be required
	oe_runmake install 'DESTDIR=${D}'
    rm -rf ${D}${libdir}/vdpau
}
